package la.bbs558.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import la.bbs558.entity.AdContent;
import la.bbs558.entity.vo.AdContentVO;
import la.bbs558.entity.params.AdContentSearchPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdContentDao extends BaseMapper<AdContent> {
    IPage<AdContentVO> selectAdContentPageForAdmin(@Param("search") AdContentSearchPage searchPage);
    IPage<AdContentVO> selectAdContentPage(@Param("search") AdContentSearchPage searchPage);

    List<AdContent> selectAdContentByPosition(@Param("position") Integer position, @Param("boardId") Long boardId, @Param("date") String date);
}
